Activity Alphabet
{
	list  letters = ("A", "B","C");
    list  pictures = ("dog.jpg", "cat.jpg","cow.jpg"); 
     list  sounds = ("dog.wav", "cat.wav","duck.wav");
     list  keys = ("a", "b","c","g");
    list  colors = ("BLACK","GREEN","BLACK");


    
	showifPressed(letters, pictures, sounds, colors, keys);	
	
}
Activity  Animals
{
	list  names = ("cat", "dog", "cow", "duck");
	list  images =("cat.jpg", "dog.jpg", "cow.jpg", "duck.jpg");
	list  sounds =("cat.wav", "dog.wav", "cow.wav", "duck.wav");	
	list  colors =("BLACK","RED", "BLUE", "GREEN");	

    
   /* Element e=(names[1], images[1], sounds[1], colors[1]);	*/
    
    loop itr from 1 to 3
    {
    	Element e=(names[itr], images[itr], sounds[itr], colors[itr]);	
    	
    	show (e);
    	wait(2);
    }  
}


main  
{
showMessage("Choose an activity: 1- Alphabet. 2-Numbers. 3- Animals.");
	say (message.wav);
	while(! IsPressed ("Escape"));
	{
		if (IsPressed ("1")) {
			start(Alphabet);
		}
		elseif  (isPressed("2")) {
			start(Numbers);
		}
		elseif  (isPressed("3")) {
			start(Animals);
		}
		else {
			say (message.wav);
}
	}
	say (byeMessage.wav);
}
